#include    "photos.h"

extern lv_indev_t * indev_keypad;
extern lv_group_t * g;
lv_obj_t * photo; 

LV_IMG_DECLARE(meinv);
//回到funcion界面
void game_to_funcion(lv_event_t*e){
 lv_obj_t*obj=lv_event_get_target(e);
 lv_group_remove_obj(obj);
 lv_indev_set_group(indev_keypad, g);
 back_to_funcion(obj);
}


void Game_Init(lv_obj_t*obj){
     photo = lv_img_create(obj);
     lv_img_set_src(photo, &meinv);
     lv_obj_align(photo,LV_ALIGN_CENTER,0,0);
    lv_obj_set_style_bg_color(obj,lv_color_hex(0x1A95E2),NULL);
    lv_group_add_obj(g,obj);
    lv_indev_set_group(indev_keypad, g); 
    lv_obj_add_event_cb(obj,game_to_funcion,LV_EVENT_CLICKED,NULL);
}